package app.fugema.shop.main.login.view;

import com.base.common.app.BaseConstant;
import com.base.common.utils.OnClickCheckedUtil;
import com.base.common.view.base.BaseFragment;
import com.jeremyliao.liveeventbus.LiveEventBus;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.databinding.DataBindingUtil;
import app.fugema.shop.R;
import app.fugema.shop.databinding.FragmentModefyPwdResultBinding;
import app.fugema.shop.main.invoice.vm.InvoiceVM;

public class ChangePwdResultFragment extends BaseFragment<FragmentModefyPwdResultBinding, InvoiceVM>
{
    public static ChangePwdResultFragment newInstance()
    {
        ChangePwdResultFragment fragment = new ChangePwdResultFragment();
        return fragment;
    }

    @Override
    protected FragmentModefyPwdResultBinding initDataBinding(LayoutInflater inflater, ViewGroup container)
    {
        return DataBindingUtil.inflate(inflater, R.layout.fragment_modefy_pwd_result, container, false);
    }

    @Override
    public void initView()
    {
        super.initView();


        binding.btnRelogin.setOnClickListener(new OnClickCheckedUtil() {
            @Override
            public void onClicked(View view)
            {
                LiveEventBus.get(BaseConstant.LOGIN_IN).post(1);
                getActivity().finish();
            }
        });


    }
}
